let path = require('path'),
	webpack = require('webpack'),
	htmlWebpackPlugin = require('html-webpack-plugin');


let config = {
	entry: './src/index.js',
	output: {
		path: path.resolve(__dirname, 'dist'),
		filename: 'js/bundle.js'
	},
	plugins: [
		new htmlWebpackPlugin({
			template: './index.tmpl.html'
		})
	],
	devServer: {
		port: 7777
	}
}

module.exports = config;